<h1>Listing articles</h1>

<table>
  <tr>
    <th>Title</th>
  </tr>
  
<% for article in @articles %>
  <tr>
    <td><%= h article.title %></td>
    <td><%= link_to 'Show', article_path(article) %></td>
    <td><%= link_to 'Edit', edit_article_path(article) %></td>
    <td><%= link_to 'Destroy', article_path(article), :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New article', new_article_path %>